package com.tripwego.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class ShowFormEvent extends GwtEvent<ShowFormEventHandler> {

	public static Type<ShowFormEventHandler> TYPE = new Type<ShowFormEventHandler>();

	private String formName;

	private String mode;

	public ShowFormEvent(String formName, String mode) {
		this.formName = formName;
		this.mode = mode;
	}

	@Override
	public Type<ShowFormEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ShowFormEventHandler handler) {
		handler.handleShowFormEtapeEvent(this);
	}

	/**
	 * @return the formName
	 */
	public String getFormName() {
		return formName;
	}

	/**
	 * @param formName
	 *            the formName to set
	 */
	public void setFormName(String formName) {
		this.formName = formName;
	}

}